package com.youkeyi.ddy.cloud.common.api.application.system.user;

import com.youkeyi.ddy.cloud.common.api.application.system.position.dto.SystemPositionDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.position.dto.SystemPositionListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.user.dto.SystemUserAuthLoginListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.user.dto.SystemUserDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.user.dto.SystemUserListByOrgCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.user.dto.SystemUserListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.user.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * SystemPositionCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/user/fallback")
public class SystemUserCloudServiceFallback implements SystemUserCloudService {

    @Override
    public SystemUserListCloudDto list(SystemUserListCloudParam param) {
        return new SystemUserListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemUserListByOrgCloudDto listByOrg(SystemUserListByOrgCloudParam param) {
        return new SystemUserListByOrgCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemUserDetailCloudDto detail(String userPrimaryKey) {
        return new SystemUserDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemUserCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updatePassword(HttpServletRequest request, HttpServletResponse response, SystemUserUpdatePasswordCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemUserDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updateAvatarUrl(SystemUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updateNickName(SystemUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemUserAuthLoginListCloudDto authList(SystemUserAuthLoginListCloudParam param) {
        return new SystemUserAuthLoginListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
